package com.zzyl.mapper;

import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingProjectMapper {

    List<NursingProjectVo> selectByPage(@Param("name") String name,@Param("status") Integer status);

    void add(NursingProject nursingProject);

    @Select("select * from nursing_project where id = #{id}")
    NursingProject getById(Long id);

    void update(NursingProject nursingProject);

    @Delete("delete from nursing_project where id = #{id}")
    void delete(Long id);

    @Select("select * from nursing_project")
    List<NursingProject> getAll();

    List<NursingProject> getByIds(@Param("ids") List<Integer> ids);
}
